Page({
  data: {
    PageCur: "leader",
    userInfo: {},
  },
  // 初始化
  onLoad: function (options) {
    if (options.cur) {
      this.setData({
        PageCur: options.cur
      })
    }
  },
  // 底部导航切换
  NavChange(e) {
    this.setData({
      PageCur: e.currentTarget.dataset.cur,
    });
  },
  onShareAppMessage() {
    return {
      title: "豆瓣电影",
      imageUrl: "/images/share.jpg",
      path: "/pages/index/index",
    };
  },
  test: function () {
    wx.showToast({
      title: '点击了',
    })
  }
});
